package org.shop.pro.serviceImpl;

import java.util.List;

import org.shop.pro.entity.Shop;
import org.shop.pro.mapper.ShopMapper;
import org.shop.pro.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ShopServiceImpl implements ShopService {
@Autowired
ShopMapper shop;
	
	public List<Shop> shoplist(List<Integer>  ids) {
		
		return shop.shoplist(ids);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return shop.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Shop record) {
		// TODO Auto-generated method stub
		return shop.insert(record);
	}

	@Override
	public Shop selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return shop.selectByPrimaryKey(id);
	}

	@Override
	public List<Shop> selectAll() {
		// TODO Auto-generated method stub
		return shop.selectAll();
	}

	@Override
	public int updateByPrimaryKey(Shop record) {
		// TODO Auto-generated method stub
		return shop.updateByPrimaryKey(record);
	}

	@Override
	public List<Shop> selectShenhe() {
		// TODO Auto-generated method stub
		return shop.selectShenhe();
	}

	@Override
	public int shenheupd(int id) {
		// TODO Auto-generated method stub
		return shop.shenheupd(id);
	}

	@Override
	public int zigeupd(int id) {
		// TODO Auto-generated method stub
		return shop.zigeupd(id);
	}

	@Override
	public List<Shop> cartshoplist(int shopid) {
		// TODO Auto-generated method stub
		return shop.cartshoplist(shopid);
	}

}
